<template>
  <el-card class="app-container">
    <c-u-r-d-table :option="option"/>
  </el-card>
</template>

<script>
import ColumnType from '@/framework/constant/ColumnType'
import { logInfoApi } from '@/feature/sys/infra/api/logInfo'
import CURDTable from '@/framework/components/table/CURDTable'

export default {
  components: { CURDTable },
  data() {
    return {
        option: {
        requestApi: logInfoApi,
        pagination: true,
        showSelection: false,
        columns: [
            {
              label: '用户名',
              prop: 'username',
              searchable: false,
              type: ColumnType.RICH_TEXTAREA,
              required: true,
            },
            {
              label: '登录IP',
              prop: 'loginIp',
              searchable: false,
              type: ColumnType.RICH_TEXTAREA,
              required: true,
            },
            {
              label: '登录时间',
              prop: 'loginDatetime',
              searchable: false,
              type: ColumnType.RICH_TEXTAREA,
              required: true,
            },
            {
              label: '登录操作',
              prop: 'loginOperation',
              searchable: false,
              type: ColumnType.RICH_TEXTAREA,
              required: true,
              width: 'auto'
            }
        ]
      }
    }
  }
}
</script>

<style lang='scss' scoped></style>
